Skip to main content

HaloPesa Statement Analysis

POST https://api.manka.tz/api/v1/analysis/2d

This analyses the pdf and generates the report. The response is in a json format.

Header Requirements

  • Authorization --required

Body Params

  • file --required
  • fullname --required
curl example request
curl -X 'POST' 'https://api.manka.tz/api/v1/analysis/2d'
-F fullname=Hussein \
-F 'file=@HaloPesa_4435535_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \'

Response Sample

  1. Status OK Response
200 OK
{
"total_cash_inflow": 3183756.0,
"cash_inflow": {
"bank_to_wallet": {
"total_amout": 504000.0,
"percentage_of_total": 15.83
},
"agent_deposit": {
"total_amout": 110000.0,
"percentage_of_total": 3.46
},
"p2p_received": {
"total_amout": 2561006.0,
"percentage_of_total": 80.44
},
"other_cashin_flow": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"loan_disbursements": {
"total_amout": 0,
"percentage_of_total": 0.0
}
},
"total_cash_outflow": 3067336.0,
"cash_outflow": {
"luku": {
"total_amout": 34500.0,
"percentage_of_total": 1.12
},
"p2p_sent": {
"total_amout": 1029418.0,
"percentage_of_total": 33.56
},
"wallet_to_bank": {
"total_amout": 982000.0,
"percentage_of_total": 32.01
},
"bundles": {
"total_amout": 134500.0,
"percentage_of_total": 4.38
},
"agent_withdrawal": {
"total_amout": 635918.0,
"percentage_of_total": 20.73
},
"bill_payment": {
"total_amout": 0.0,
"percentage_of_total": 0.0
},
"merchant_payment": {
"total_amout": 246000.0,
"percentage_of_total": 8.02
},
"other_cashout_flow": {
"total_amout": 5000.0,
"percentage_of_total": 0.16
},
"loan_repayments": {
"total_amout": 0,
"percentage_of_total": 0.0
}
}
}